home *** CD-ROM | disk | FTP | other *** search
/ Aminet 2 / Aminet AMIGA CDROM (1994)(Walnut Creek)[Feb 1994][W.O. 44790-1].iso / Aminet / dev / misc / OpalDev.lha / C / opalreqlib.h < prev   
C/C++ Source or Header  |  1992-12-01  |  1KB  |  58 lines

  1. #ifndef    OPAL_REQ_LIB_H
  2. #define    OPAL_REQ_LIB_H
  3.  
  4. #ifndef    EXEC_LIBRARIES_H
  5. #include <exec/libraries.h>
  6. #endif
  7.  
  8. #ifndef    OPALLIB_H
  9. #include <opal/opallib.h>
  10. #endif
  11.  
  12.  
  13. __asm long OpalRequester (register __a0 struct OpalReq *OpalReq);
  14.  
  15.  
  16. #ifdef    AZTEC_C
  17. #pragma amicall(OpalReqBase, 0x1e, OpalRequester(A0))
  18. #else
  19. #pragma libcall OpalReqBase OpalRequester 1e 801
  20. #endif
  21.  
  22.  
  23. struct OpalReqBase
  24.     { struct Library OR_Lib;
  25.       unsigned long    OR_SegList;
  26.     };
  27.  
  28.  
  29. struct OpalReq
  30.     { USHORT TopEdge;        /* Top Line of requester    */
  31.       BYTE     *Hail;            /* Hailing text            */
  32.       BYTE     *File;             /* Filename buffer (>=31 chars)    */
  33.       BYTE     *Dir;            /* Directory name.        */
  34.       BYTE     *Extension;        /* File extension to include    */
  35.       struct Window    *Window;     /* Window to display requester.    */
  36.       struct OpalScreen *OScrn;     /* OpalScreen to display req.    */
  37.       USHORT *Pointer;        /* Sprite mouse pointer        */
  38.       BOOL     OKHit;            /* TRUE if OK gadget hit     */
  39.       BOOL     NeedRefresh;        /* OpalScreen needs a refresh    */
  40.       long      Flags;             /* See Below            */
  41.       SHORT     BackPen;        /* Pen # to use for BG rendering*/
  42.       SHORT     PrimaryPen;        /* Pen # for primary rendering    */
  43.       SHORT     SecondaryPen;        /* Pen # for secondary rendering*/
  44.         };
  45.  
  46.     /* Flags */
  47. #define NO_INFO        0x1    /* Exclude files ending in .info      */
  48. #define LASTPATH    0x2    /* Use Last selected path as current    */
  49.  
  50.  
  51. #define OR_ERR_OUTOFMEM    1
  52. #define OR_ERR_INUSE    2
  53.  
  54. #define OPALREQ_HEIGHT    345        /* The height of the Requester    */
  55.  
  56. #endif
  57.  
  58.